package com.xinmao.quantitative.service.scan;

import com.xinmao.quantitative.constant.Constants;
import com.xinmao.quantitative.service.data.ILoadDataService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @Title: ScanStockService
 * @Author: XYe13
 * @Date: 5/23/2024 17:01
 * @Description: <TODO description class purpose>
 */
@Service
public class ScanStockService {

    @Resource
    private ILoadDataService loadDataService;

    public Map<String, String> scanStockCodeAll() {
        if(Constants.stockMarketMap.isEmpty()){
            loadDataService.getStockSymbolCode("");
        }
        return Constants.stockMarketMap;
    }

    public Map<String, String> scanStockCodeSH() {
            return loadDataService.getStockSHMarketCode();
    }

    public Map<String, String> scanStockCodeSZ() {
            return loadDataService.getStockSZMarketCode();
    }

    public Map<String, String> scanStockCodeBJ() {
            return loadDataService.getStockBJMarketCode();
    }
}
